package com.hyl.entity;

import lombok.Data;

import java.util.List;

/**
 * SysUser
 *
 * @author hyl
 * @date 2025-05-23
 */
@Data
public class SysUser {
    private Integer id;
    private String account;
    private String realName;
    private String password;
    private Integer  sex;
    private String birthday;
    private String  phone;
    private String        address;
    private String idPicPath;
    private String        workPicPath;
    private Integer roleId;
    private Integer         createdUserId;
    private String  createdTime;
    private Integer        updatedUserId;
    private String updatedTime;

    public SysUser() {
    }

    public SysUser(String account, String realName, String password) {
        this.account = account;
        this.realName = realName;
        this.password = password;
    }

    //多个用户=》一个角色
    private SysRole sysRole;

    //一个用户=》多个地址
    private List<Address> addressList;
}
